From 525bfe4e31f0724f332f139d1d3281bef057d5f3 Mon Sep 17 00:00:00 2001 From: Ashelyn Rose Date: Tue, 9 May 2023 14:09:05 -0600 Subject: mobile layout --- app/about/[name]/page.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'app/about/[name]/page.tsx') diff --git a/app/about/[name]/page.tsx b/app/about/[name]/page.tsx index 625af62..411a2f0 100644 --- a/app/about/[name]/page.tsx +++ b/app/about/[name]/page.tsx @@ -6,6 +6,11 @@ import InfoBar from "~/components/InfoBar"; import styles from "~/styles/index.module.css" import system from "~/config/system.json" +export async function generateStaticParams() { + const memberSlugs = system.members.map(member => member.name.toLowerCase()) + return memberSlugs.map((name: string) => ({ name })) +} + export default function MemberPage({ params: { name } }) { const member = system.members.find(member => member.name.toLowerCase() === name) @@ -28,7 +33,7 @@ export default function MemberPage({ params: { name } }) { ))} )} - + ) } -- cgit 1.4.1